 <?php
	$tblImage = new Zendvn_Models_Slide();
	$img = $tblImage->listItem($this->arrParam,array('task'=>'public')); 
?>
 <div class="slideshow">
                        <div class="camera_wrap" id="camera_wrap_1">
                        <?php  
                        if(count($img) >0) {
                        	$xhtml = '';
                        	foreach ($img as $key=>$value){
                        		
                        		$picture	= $value['picture'];
								$name		= $value['name'];			
								if(!empty($picture)){
									$linkImg	= FILES_URL . '/slide/orignal/' . $picture;
									$linkSImg	= FILES_URL . '/slide/images730x470/' . $picture;
								}
								else{
									$linkImg	= FILES_URL . '/slide/default/img-slide01.png';
								}
                        		$xhtml .= 
                        		'<div data-src="'. $linkImg.'">
                                	<div class="camera_caption fadeFromBottom">
                                    	'.$name.'
                                	</div>
                            	</div>';
                        	}
                        	echo $xhtml;
                        }
                        
                        ?>
                            
                        </div>
                    </div>